﻿<%@ Page Title="" Language="C#" MasterPageFile="~/edit/Admin.Master" AutoEventWireup="true" CodeBehind="RolePermissions.aspx.cs" Inherits="ChgDoc.Edit.RolePermissions"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" runat="server">

<div class="formStyle">

    <asp:literal id="litErrors" runat="server" />

    <asp:datagrid id="grdList" runat="server" autogeneratecolumns=false CssClass="grid" OnItemDataBound="grdList_ItemDataBound" OnItemCommand="grdList_ItemCommand" >
	<HeaderStyle CssClass="gridHeader" />
	<columns>
		<asp:BoundColumn DataField="Id" visible="false" readonly="true" />
		<asp:BoundColumn DataField="Code"  HeaderText="Code"/>
		<asp:BoundColumn DataField="Description" headertext="Description" />
        <asp:ButtonColumn ButtonType="Linkbutton" CommandName="Change" Text="Allow" />
		
		<asp:ButtonColumn ButtonType="Linkbutton" CommandName="Edit" Text="Edit" />
		<asp:ButtonColumn ButtonType="Linkbutton" CommandName="Delete" Text="Delete" />
	</columns>
	</asp:datagrid>
    <br/>

    <table cellspacing="0" cellpadding="0" class="std">
        <tr class="head"><td colspan="2"><h5>New permission</h5></td></tr>
        <tr class="gray"><td class="lbl">Code</td><td><asp:textbox id="txtCode" runat="server" class="txtCode" /></td></tr>
        <tr class="gray"><td class="lbl">Description</td><td><asp:textbox id="txtDescription" runat="server" /></td></tr>
        <tr><td></td><td><asp:button id="btnSave" runat="server" text="Save" onclick="btnSave_click" class="ui-state-default" /></td></tr>
    </table>
</div>

</asp:Content>
